<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head></h:head>

	<h:body>
        
        <div id="logoHomePage" align="left">
			<a href="..\homepage.xhtml"><img src="grafica\TravelDream_Logo.gif" width="150" height="75"/></a>
		</div>
		
		<div id="logout" align="right">
        	<h:form>
        	           	<a href="admin\index.xhtml">Pagina Amministrazione</a>
        	
				<h:commandButton action="#{logoutBean.logout}" value="Logout" />
			</h:form>
		</div>
		
		
		
		<div id="formCancellaPacchetto">
		    
				<h:form id="formCancella">  
		        <h:panelGrid columns="2" cellpadding="10">  
		        
		        	<p:dataTable id="pacchetto" var="p" value="#{pacchettoBean.pacchettiDTO}" rowKey="#{p.idPacchetto}" 
		 					selection="#{pacchettoBean.nuovoPacchetto}" selectionMode="single">
		 					
					        <p:column headerText="IdPacchetto">  
					            #{p.idPacchetto}  
					        </p:column>  
					  
					        <p:column headerText="Nome">  
					            #{p.nome}  
					        </p:column>  
					        
					        <p:column headerText="Descrizione">  
					            #{p.descrizione}  
					        </p:column>  
		  
		    		</p:dataTable> 
		             
		       	</h:panelGrid>  
		       		
					<p:commandButton value="Cancella" action="#{pacchettoBean.cancella()}" />
		   			
				</h:form> 
		       
</div>		
		
		
		
		
		
		
		
		
    </h:body>

</html>
